﻿<UserControl x:Class="ViewParametrerReassurance"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:OMANE.Modules.PMT"
             xml:lang="fr-FR"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="600">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>

            <RowDefinition Height="*"/>
            <RowDefinition Height="Auto"/>

        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="*" />
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="*" />
        </Grid.ColumnDefinitions>

        <GroupBox Header="Modeles de reassurance" Grid.ColumnSpan="3" >
            <local:AdvancedDatagrid CanUserDeleteRows="False"  x:Name="modelreassDgrid" SelectedItem="{Binding ModeleReassuranceActif, Mode=TwoWay}" ColumnWidth="*" CanUserReorderColumns="False" ItemsSource="{Binding ListeModelesReassurance}" ShowFilterButton="False">

            </local:AdvancedDatagrid>
        </GroupBox>
        <GroupBox Grid.Row="2" Header="Cles PMT"  Margin="5">
            <local:AdvancedDatagrid  x:Name="ClesDgrid" Margin="5" ItemsSource="{Binding ListeClesReassurance}" IsReadOnly="True" ColumnWidth="*"/>
        </GroupBox>
        <GroupBox Grid.Row="2" Grid.Column="2" Header="Cles PMT du modele de reassurance" Margin="5">
            <local:AdvancedDatagrid x:Name="ClesChoisiesDgrid" Margin="5" ItemsSource="{Binding ListeReassurance}" IsReadOnly="True" ColumnWidth="*" >
                <local:AdvancedDatagrid.DefaultFilter>
                    <Binding Path="GroupePmtActif">
                        <Binding.Converter>
                            <local:VariableValueToFilterConverter ColumnName="GROUPE" />
                        </Binding.Converter>
                    </Binding>
                </local:AdvancedDatagrid.DefaultFilter>
            </local:AdvancedDatagrid>
        </GroupBox>
        <GridSplitter Grid.Column="1" Grid.Row="2" VerticalAlignment="Stretch" HorizontalAlignment="Stretch"  />
        <StackPanel VerticalAlignment="Center"   Grid.Column="1" Grid.Row="2" >
            <Button Content=" >>> " Margin="5" Name="BtSet" />
            <Button Content=" &lt;&lt;&lt; " Margin="5" Name="BtUnSet"/>

        </StackPanel>

        <StackPanel HorizontalAlignment="Right" Grid.Row="3" Grid.ColumnSpan="3">
            <Button Margin="5" Content="Sauvegarder les changements" Padding="2" />
        </StackPanel>
    </Grid>
</UserControl>
